package cn.tedu;

public class Test {
    public static void main(String[] args) {
        int x=m(9);
        System.out.println("x="+x);
        n(9);
    }
    private static int m(int i){
        if(i==1){
           return 1;
        }
        return i*m(i-1);//n!=n*(n-1)!
    }
    private static void n(int i){
        if(i==1){
            System.out.println("1*1=1");
        }else {
            n(i - 1);
            for (int j = 1; j <= i; j++) {
                System.out.print(j + "*" + i + "=" + j * i + "  ");
            }
            System.out.println();
        }
    }

}
